﻿using SqlSugar;

namespace Shop.Model.Entity.Use;

/// <summary>
/// 1.11 用户卡包
/// </summary>
[SugarTable("use_card")]
public class UseCardEntity:BaseEntity
{
    /// <summary>
    /// 用户(use_user.Id)
    /// </summary>
    public long User { get; set; }
    
    /// <summary>
    /// 银行卡号
    /// </summary>
    public string Card { get; set; }
    
    /// <summary>
    /// 持有人
    /// </summary>
    public string Possessor { get; set; }
    
    /// <summary>
    /// 开户行编码
    /// </summary>
    public string Coding { get; set; }
    
    /// <summary>
    /// 银行名
    /// </summary>
    public string Bank { get; set; }
    
    /// <summary>
    /// 开户行地址
    /// </summary>
    public string BankOfDeposit { get; set; }

    /// <summary>
    /// 是否有效
    /// </summary>
    public bool IsValid { get; set; } = true;
    
    /// <summary>
    /// 创建时间
    /// </summary>
    [SugarColumn(IsOnlyIgnoreInsert = true)]
    public DateTime FoundTime { get; set; }
    
    /// <summary>
    /// 解除时间
    /// </summary>
    public DateTime? UntieTime { get; set; }
}